package com.cn.keysynchronized;

/**
 * Created by chenyuncong on 2019/8/15.
 */
public class TestSynchronized {
    public static void main(String[] args) {

//        for(int i = 0 ;i<5;i++){
//            new Thread(new SynchronizedThread(i)).start();
//        }
//        for(int i = 0 ;i<5;i++){
//            new Thread(new SynchronizedThread(i)).start();
//        }

        Thread t2= new Thread(new SynchronizedThread(2));
        Thread t3= new Thread(new SynchronizedThread(2));
        t2.start();
        t3.start();
    }
}
